package com.pig4cloud.pigx.strategy.dto;

import com.pig4cloud.pigx.strategy.bo.StrategyContractOrderParam;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 止盈止损批量撤销dto
 *
 * @since 2023/2/10 15:03
 */
@Data
public class StrategyStopOrderContractCancelBatchDTO extends StrategyContractOrderParam {

    private static final long serialVersionUID = 1L;

    /**
     * 任务id
     */
    @NotNull(message = "taskId不能为空")
    private Long taskId;

    /**
     * id集合
     */
    @NotEmpty(message = "idList不能为空")
    private List<Long> idList;

    /**
     * 开关id，前端调用时不需要传入该参数
     */
    private Long switchId;

    /**
     * 用户id，前端调用时不需要传入该参数
     */
    private Long userId;

    /**
     * 日志id
     */
    private Long logId;
}
